﻿<html>
<head>
<title>Page</title>
<style type="text/css">

</style>
<script>
var clickCount = 0;
function onClickButton() {
	clickCount++;
	var pCountElement = document.getElementById("count");
	pCountElement.innerHTML = "click button " + clickCount;
}

function onClickQueryButton() {
	todo.nativeQuery("i am js");
}

function onQueryCallback(text) {
	var pContentElement = document.getElementById("query_content");
	pContentElement.innerHTML = text;
}

function addTextIntoQueryContent(text) {
	var pContentElement = document.getElementById("query_content");
	pContentElement.innerHTML = text;
}

function onClickButtonTest(node) {
	alert(node.innerHTML);
	addTextIntoQueryContent('c');
}



</script>

<script>
$(document).ready(function(){
	alert("test1");//这段代码会被执行
});
</script>

</head>
<body>

<button type="button" onclick="onClickButton()">Click Me</button>
<p id="count">click button 0</p>

<button type="button" onclick="onClickQueryButton()">Query</button>
<p id="query_content" style="background-color:#ff0000">no content</p>

<button type="button" onclick="onClickButtonTest(this)">Click Test</button>

</body>
</html>